#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<windows.h>
//void swap(int * pa,int* pb) {
//    int temp = *pa;
//    *pa = *pb;
//    *pb = temp;
//}
//int judge(int year) {
//    if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)return 1;
//    else return 0;
//}
int judge(int x) {
    int j = 0;
    for (j = 2; j <= sqrt(x); j++) {
        if (x % j == 0)return 0;
    }
    return 1;
}
int main() {
    int i = 0;
    for (i = 100; i <= 200; i++) {
        if (judge(i))printf("%d  ", i);
    }
    return 0;
}
    /*int i = 0;
    int j = 0;
    int m = 0;
    int n = 0;
    scanf("%d", &n);
    for (i = 1; i <= n; i++) {
        for (j = 1; j <= n; j++) {
            printf("%d*%d=%d  ", i, j, i * j);
        }
        putchar('\n');
    }*/



    /*int a = 0;
        int b = 0;
        scanf("%d %d", &a, &b);
        swap(&a, &b);
        printf("%d  %d\n", a, b);*/
//int i = 0;
//for (i = 1000; i <= 2000; i++) {
//    if (judge(i))printf("%d\n", i);
//}
